{% extends "site.html" %}
{% block title %}{% endblock %}
{% block stylesheet %}{% load media %}{% media_prefix %}css/storagestyle.css{% endblock %}
{% block globalconteiner %}

<div id="title"><h1>Склад</h1></div>

<div id="main_menu">
<ul>
    {% block main_menu %}
    {%for item in menu_items %}
    {% ifequal item.id current_menu_item %}
    <li><b>{{ item.caption }}</b></li>
    {% else %}   
    <li><a href="{{ item.url }}">{{ item.caption }}</a></li>
     {% endifequal %} 
    {% endfor %}
    
{% comment %} and   
    <li><a href="{% url ktit.storage.views.main.index %}">Главная</a></li>
    <li><a href="{% url ktit.storage.views.main.index %}">Склад</a></li>
    <li><a href="{% url ktit.storage.views.documents.document_open_list %}">Документы</a></li>
{% endcomment %}     
	{% endblock %} 
</ul>
</div>

<div id="sub_menu">
<UL>
{%for item in menu_items %}
{% ifequal item.id current_menu_item %}
    {%for subitem in item.sub_menu_items %}
    {% ifequal subitem.id current_sub_menu_item %}
    <li><b>{{ subitem.caption }}</b></li>
    {% else %}   
    <li><a href="{{ subitem.url }}">{{ subitem.caption }}</a></li>
     {% endifequal %} 
    {% endfor %}
 {% endifequal %} 
{% endfor %}

{% comment %}
     <li><a href="">sub 1</a></li>
     <li><b>sub 2</b></li>
{% endcomment %}      
</ul>
</div>{# <div id="print_menu"><a href="">Печать</a></div> #}

{# <div id="global_message"><font color='green'>{{ global_message }}</font></div>  #}

<div id="path_menu">
<UL>
  {% for item in history_path %}
    <li><a href="{{ item.url }}">{{ item.caption }}</a></li><li>&nbsp;/&nbsp;</li>
  {% endfor%} 
 </UL>
</div>



        {% block content %}
        {{ content }}
        {% endblock %}

{% endblock %}
{% block meta %}

  <p>
    {{ sql_queries|length }} Quer{{ sql_queries|pluralize:"y,ies" }}
    {% ifnotequal sql_queries|length 0 %}
    (<span style="cursor: pointer;" onclick="var s=document.getElementById('debugQueryTable').style;s.display=s.display=='none'?'':'none';this.innerHTML=this.innerHTML=='Show'?'Hide':'Show';">Show</span>)
    {% endifnotequal %}
  </p>
  <table id="debugQueryTable" style="display: none;">
    <col width="1"></col>
    <col></col>
    <col width="1"></col>
    <thead>
    <tr>
      <th scope="col">#</th>
      <th scope="col">SQL</th>
      <th scope="col">Time</th>
    </tr>
    </thead>
    <tbody>
    {% for query in sql_queries %}<tr class="{% cycle odd,even %}">
      <td>{{ forloop.counter }}</td>
      <td>{{ query.sql|escape }}</td>
      <td>{{ query.time }}</td>
    </tr>{% endfor %}
    </tbody>
  </table>
Version:&nbsp;2.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;Date:&nbsp;8.05.2008

{% endblock %}	

